package com.gxar.quick.ar.server.base.model.identify;

import com.alibaba.fastjson2.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @author linsy
 * @version 1.0
 * @created 2024/4/15 15:49
 */
@Data
public class BasePredict {

    @ApiModelProperty("用户ID")
    @JSONField(name = "user_id")
    @JsonProperty("user_id")
    @NotNull(message = "用户ID不能为空")
    private Long userId;
    @ApiModelProperty("图片")
    @JSONField(name = "image_base64")
    @JsonProperty("image_base64")
    @NotBlank(message = "图片不能为空")
    private String imageBase64;
    @ApiModelProperty("多图识别")
    @JSONField(name = "multi_result")
    @JsonProperty("multi_result")
    private Boolean multiResult;


    {
        multiResult = true;
    }
}
